home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17488 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  50 lines

  1. Path: wintermute.ecs.fullerton.edu!titan!grosin
  2. From: grosin@titan (Gil Rosin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Linking C++ with ASM Class members -- HOW??
  5. Date: 16 Apr 1996 00:44:58 GMT
  6. Organization: California State University at Fullerton
  7. Message-ID: <4kuqia$2ej@wintermute.ecs.fullerton.edu>
  8. NNTP-Posting-Host: titan.ecs.fullerton.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I'm writing an app using Borland C++ v3.1 and TASM, one of my classes which
  12. will hold graphics primatives has several member functions (all the graphics
  13. primatives) written in Assembler. Now take the following class for example:
  14.  
  15. class Test
  16.  {
  17.   void Function(int, int);
  18.  };
  19.  
  20. now, if I want to have that function in assembler, the assembly code has
  21. to be:
  22.  
  23. proc @Test@Function$qii far
  24. .
  25. .
  26. .
  27. endp @Test@Function$qii
  28.  
  29. ok, so no problem. I understand the first part, but the $ stuff has me
  30. stumped. Does anyone have a table of the format of different parameters? I
  31. know the parameter list starts with $q all the time and I know some of the
  32. following sequences:
  33.  
  34. int = i
  35. unsigned short = us
  36. char = zc
  37. char * = nzc
  38.  
  39. actually, I'm not to sure about the last two off the top of my head, if anyone
  40. has a table with the formats of these things please post it. Otherwise the
  41. only way I have been able to do it is to produce ASM output with the
  42. param list I want and look in there, but it gets to be a pain if you want
  43. a lot of functions. Thanks.
  44.  
  45. please reply via email to grosin@titan.fullerton.edu
  46.  
  47. .
  48.  
  49. char 
  50.